function getObject(idocument, objectId) {
	if (typeof idocument == "string") {
		objectId = idocument;
		idocument = document;
	}
	if (idocument.getElementById && idocument.getElementById(objectId)) {
		return idocument.getElementById(objectId);
	} else {
		if (idocument.all && idocument.all(objectId)) {
			return idocument.all(objectId);
		} else {
			if (idocument.layers && idocument.layers[objectId]) {
				return idocument.layers[objectId];
			} else {
				return false;
			}
		}
	}
}
function getStyleObject(idocument, objectId) {
	if (typeof idocument != "object") {
		idocument = document;
	}
	if (idocument.getElementById && idocument.getElementById(objectId)) {
		return idocument.getElementById(objectId).style;
	} else {
		if (idocument.all && idocument.all(objectId)) {
			return idocument.all(objectId).style;
		} else {
			if (idocument.layers && idocument.layers[objectId]) {
				return idocument.layers[objectId];
			} else {
				return false;
			}
		}
	}
}